let plugin = {
  install(Vue) {
    //组件
    Vue.component("zz", {
      template: "<h1>组件</h1>"
    });

    //过滤器
    Vue.filter("fmtGender", val => {
      return ["男", "女"][val];
    });
  }
};

export default plugin;
